import requests
from config import data_source
from parser_data import parse


def query_data():
    result = []
    for item in data_source:
        print(item["name"] + " start data query....")
        r = requests.get(item["url"])
        value = r.text
        print(item["name"] + " data query finish")
        result.append({"name": item["name"], "data": value})
    parse(result)
